﻿<Window x:Class="XWord.GUI.Views.RCArticleDetailView"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:cal="http://www.caliburnproject.org"
        Title="阅读理解">
    <Grid>
        <StackPanel Orientation="Horizontal">
            <StackPanel Width="450">
                <Button cal:Message.Attach="SaveArticle">保存</Button>
                <TextBox Text="{Binding Detail.PointWords}" MinHeight="60" TextWrapping="Wrap"></TextBox>
                <TextBox Text="{Binding Detail.Content}" TextWrapping="Wrap"></TextBox>
            </StackPanel>
            <ListBox ItemsSource="{Binding Detail.Questions}" Width="Auto">
                <ListBox.ItemTemplate>
                    <DataTemplate>
                        <GroupBox Header="{Binding Sentence}">
                            <ListBox DisplayMemberPath="Sentence" ItemsSource="{Binding Choices}"></ListBox>
                        </GroupBox>
                    </DataTemplate>
                </ListBox.ItemTemplate>
            </ListBox>
            <ListBox ItemsSource="{Binding Detail.GapFillList}" Width="Auto">
                <ListBox.ItemTemplate>
                    <DataTemplate>
                        <TextBlock Text="{Binding Name}"></TextBlock>
                        <!--<GroupBox Header="{Binding Sentence}">
                            <ListBox DisplayMemberPath="Sentence" ItemsSource="{Binding Choices}"></ListBox>
                        </GroupBox>-->
                    </DataTemplate>
                </ListBox.ItemTemplate>
            </ListBox>
        </StackPanel>
    </Grid>
</Window>
